<?php
if($this->item != null) {
    $links[] = '<a href="/' . DigNavigation_Service_Menu::getUrlForItem($this->item) . '">' .
            DigNavigation_Service_Menu::getLabel($this->item) . '</a>';
    if(! DigCms_Service_Item::isDefaultItem($this->item)) {
        $parents = $this->item->parents();
        if(is_array($parents) && count($parents) > 0) {
            foreach ($parents as $item) {
                $links[] = '<a href="/' . DigNavigation_Service_Menu::getUrlForItem($item) . '">' .
                        DigNavigation_Service_Menu::getLabel($item) . '</a>';
                if(DigCms_Service_Item::isDefaultItem($item)) {
                    break;
                }
            }
        }
    }
    $links = array_reverse($links);
    //Zend_Debug::dump($links);die();
}
?>
<p class="breadcrumbs">
    <?= implode(' ' . $this->separator . ' ', $links);?>
</p>
